#include <ReadyQ.h>
#include <ProcessComposition.h>
#include <Queue.h>


ReadyQ::ReadyQ(){ }
ReadyQ::~ReadyQ(){}

void
ReadyQ::Push(ProcessComposition &p)
{
	//printf("PUSH: %i: ", );
	active_q[p.GetMemorySlot()].push(p);
}

int
ReadyQ::Size(int slot)
{
	return active_q[slot].size();
}

ProcessComposition*
ReadyQ::Get(int slot)
{
	return &active_q[slot].pop();
}
